fix: custom build dir support for Linux and Mac