#394 Fix error when build directory name contains special regex characters