Update filesystem.cc

Updated file to take care of path names that have ".." & "."
added pwd command to print full path of current directory