filename shortening needs file extension to make decisions.
closes #PICARD-613
Merge pull request #344 from xlotlu/master

filename shortening needs file extension to make decisions.
Fix evaluation of script functions with zero arguments.