Since we've previously done "cd $REL/lib" this directory will be created under "lib", and the subsequent commands won't work as intended.