Removes static path. Now captures the path from which the script is invoked