Script updated to be rel-path friendly