added unlink code; fixed bug where you could cd to a file instead of a directory