filename $(pwd)
in ksh will give you the name of the directory you are in, not the complete path. I believe that is what you want. Add whatever you want to that to make your new directory.
You may not be aware that the link you posted is in all probability a pirated copy of the material it references. O'Reilly & Associates never gives permission, that I am aware of, to publish their copyrighted materials. Out of respect to them you may consider not posting a link to that piratated material in the future. This website probably does not allow it either, as no legitimate website allows links to pirated material.
You would think the administrator of a major institution of higher learning would know better than to upload copyrighted material to the school server and allow it to be accessed via the www.