SetDirectory Function

Added a function to manage working directory