[Common] Improved method to test if the binary directory is accessible