Fixed foreign config directories, and build_js locating pyjsbuild.