made script relative to directory its in