fix permissions and configure relative path issue