Add some security to addBase. Defaults to check the absolute path