Do not set path when reading from stdin. Change behaviour of lock and save when the index has no path.
Use stdin when data is piped instead of IDX_FILE. Fixes #9.