Fix #22, use a proper way to handle prepared_file variable
Merge branch 'master' of github.com:hadronproject/lpms
use a safety valve for some of internal commands
merge safety valve fixes