Using commandline arguments to pass directory names

Something I felt would be nice to have, so that people who use it don't have to edit the script.
Fixed with SHA: 8d2cec98671448a42ffd1ddb47c9861b79f5be94