I've checked, and it works allright. It also works nicely with other filenames such as .bashrc or .profile, detecting first filename and then extension. 

@peterflynn was your concerned fully addressed, or is there something else?