version I got from http://www.ccl.net/cca/software/PERL/Find_Rotatable_Bonds/findrotatable.pl
added link to the official homepage of this script
executable property set
more robust regexp to remove only the file extension