Wrong directory path in scripts