Use a secure randomized build directory when possible