Upgraded template command to handle if the destination is not within a Python directory as expected