making sure path is set before checking for scripts