Fixing the default path issue after default-path was deprecated