Added support for moving to parent directory and for directory inheritance when a thread is created