get function fixed
- fixes weird build error when agavi lib resides inside a project tree but the build script is called from outside this tree. 
- does not assume any more that the called script might be a symlink but rather checks for that case.