Fixed last_day() issues - add 0.99999 to give 59'59s
fixed issue with spaces in file names