Script takes a paramter which specifies source directory