Cut machine dependent information from path for storage.