Function to initialize file and dir paths