Inertial Effects in Nonequilibrium Work Fluctuations by a Path Integral Approach