Removing the path extension as this is not used.