Fix paths so script works from other locations