Correctly join paths to avoid problems when deploying