Turned the name of the directory used to store object files and logfiles into a parameter.