[arch-projects] [PATCH 08/13] functions: refactor get_{base, dir}name