Add option to remove the path extension