Path bug fixed

The use of chdir() was causing an issue since it was dupping
when used with requirements check.