[pacman-dev] [PATCH] libmakepkg: when checking for write permissions, handle pre-existing dirs